<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- CSRF Token -->
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>@yield('title','漳州客系统')</title>
    <meta name="author" content=""/>
    <meta name="description" content="@yield('description')"/>
    <meta name="keywords" content="@yield('keywords')"/>
    {{--<link rel="stylesheet" href="{{mix('css/app.css')}}">--}}
    <link rel="stylesheet" type="text/css"
          href="{{asset('org/beagle/lib/perfect-scrollbar/css/perfect-scrollbar.min.css')}}"/>
    <link rel="stylesheet" type="text/css"
          href="{{asset('org/beagle/lib/material-design-icons/css/material-design-iconic-font.min.css')}}"/>
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    <link rel="stylesheet" href="{{asset('org/beagle/css/app.css')}}" type="text/css"/>
    @yield('head')
</head>
<body>
<div class="be-wrapper be-fixed-sidebar" id="app">
    <nav class="navbar navbar-expand fixed-top be-top-header">
        <div class="container-fluid">
            <div class="be-navbar-header">
                <a href="#" class="navbar-brand">
                </a>
            </div>
            <div class="be-right-navbar" style="order:2;">
                <ul class="nav navbar-nav float-right be-user-nav">
                    <li class="nav-item dropdown">
                        <a href="#" data-toggle="dropdown" role="button" aria-expanded="false"
                           class="nav-link dropdown-toggle">
                            <img src="{{asset('org/beagle/img/avatar.png')}}" alt="Avatar">
                            <span class="user-name">{{Auth()->user()->nickname}}</span>
                        </a>
                        <div role="menu" class="dropdown-menu">
                            <div class="user-info">
                                <div class="user-name"></div>
                                <div class="user-position online">
                                {{--{{Auth()->user()->nickname}}--}}
                                </div>
                            </div>
                            <a href="/admin/showpassword" class="dropdown-item">
                                <span class="icon mdi mdi-face"></span> 修改密码
                            </a>
                            {{--<a href="#" class="dropdown-item">--}}
                                {{--<span class="icon mdi mdi-settings"></span> 帐号设置--}}
                            {{--</a>--}}
                            <a href="javascript:void(0);" class="dropdown-item" onclick="event.preventDefault();document.getElementById('logout').submit()">
                                <span class="icon mdi mdi-power"></span> 退出
                            </a>
                            <form action="/admin/logout" method="post" id="logout">
                                @csrf
                            </form>
                        </div>
                    </li>
                </ul>
            </div>


        </div>
    </nav>
    <div class="be-left-sidebar">
        <div class="left-sidebar-wrapper"><a href="#" class="left-sidebar-toggle">菜单</a>
            <div class="left-sidebar-spacer">
                @include('admin::layouts._menus')
            </div>
            <div class="progress-widget">
                <div class="progress-data">
                    <span class="name">
                      
                    </span>
                </div>
            </div>
        </div>
    </div>
    <div class="be-content">
        <div class="main-content container-fluid" id="pjax-container">
            <!--pjax加载动画-->
            <div id="loading">
                <div class="spinner">
                    <div class="rect1"></div>
                    <div class="rect2"></div>
                    <div class="rect3"></div>
                    <div class="rect4"></div>
                    <div class="rect5"></div>
                </div>
            </div>
            <!--pjax加载动画 结束-->
            <div id="app">
                @include('admin::layouts._error')
                @include('admin::layouts._message')
                @include('flash::message')
                @yield('content')
            </div>
        </div>
    </div>

</div>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script src="{{asset ('js/app.js')}}" type="text/javascript"></script>
{{--<script src="{{asset ('js/shop.js')}}" type="text/javascript"></script>--}}
{{--<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.js"></script>--}}
<script>
    $(function () {
        $.ajaxSetup({
            headers: {
                'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
            }
        });
    })
</script>
{{--<script src="{{asset('org/beagle/lib/jquery/jquery.min.js')}}" type="text/javascript"></script>--}}
<script src="{{asset ('js/menus.js')}}" type="text/javascript"></script>
{{--<script src="{{mix('js/app.js')}}"></script>--}}
<script src="{{asset('org/beagle/lib/perfect-scrollbar/js/perfect-scrollbar.jquery.min.js')}}"
        type="text/javascript"></script>
<script src="{{asset('org/beagle/js/app.js')}}" type="text/javascript"></script>
<script src="https://cdn.bootcss.com/jquery.pjax/2.0.1/jquery.pjax.min.js"></script>
<script src="{{asset('plugin/pjax/pjax.js')}}"></script>
<link rel="stylesheet" href="{{asset('plugin/pjax/pjax.css')}}">
<script>
    $('#flash-overlay-modal').modal();
    setTimeout(function(){
        $('#flash-overlay-modal').modal('hide');
    },3000);
</script>
<script type="text/javascript">
    $(document).ready(function () {
        //initialize the javascript
        App.init();
    });
</script>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=A1IGh1idIuY9eWihUFtNUXqBr0WcaPZ0"></script>
@yield('scripts')
</body>
</html>